<template>
    <view class="page-invitation-detail">
        体验卡:{{ pageParams.invitationCode }}
        <u-button open-type="share" class="btn-cyan">点击邀请好友</u-button>
    </view>
</template>
<script setup lang="ts">
import {onShow, onLoad, onShareAppMessage } from '@dcloudio/uni-app';
const {proxy} = getCurrentInstance() as ComponentInternalInstance;
let pageParams = reactive({invitationCode: null});
onShareAppMessage((option) =>{
	return {
		title: '邀请你来',
		path: '/pages/register/index?inviterCode='+ pageParams.invitationCode,
		// imageUrl: invite_info.image_path
	};
});
onLoad((e) => {
    pageParams = e;
    console.log(pageParams);

})
</script>